package com.jiutong.meipenggang.http.model.requests;

import com.jiutong.meipenggang.http.RetrofitHandle;
import com.jiutong.meipenggang.http.SubscribeHandler;
import com.jiutong.meipenggang.http.model.services.TotalMoneyDetailService;

import java.util.Map;

import rx.Observable;
import rx.Subscriber;


/**
 * @author Veken
 * @date on 2017/12/29 11:12
 * @describe  获取总资产详情
 */

public class TotalMoneyDetailRequest extends SubscribeHandler {

    public void getTotalMoneyDetail(Subscriber subscriber, Map<String, Object> fields){
        handleFields(fields);
        Observable observable = RetrofitHandle.getInstance().retrofit.create(TotalMoneyDetailService.class)
                .getTotalMoneyDetail(fields);

        toSubscribe(observable, subscriber);
    }
}
